package phoenix.web.locators.maturedating.features;

import org.openqa.selenium.By;
import phoenix.web.locators.base.features.MessengerLocatorsBase;

/**
 * Created by AlexGolovko on 30.09.2014.
 */
public class MessengerLocators extends MessengerLocatorsBase
{
	public MessengerLocators()
	{
		btnMessageOpen = By.xpath("//a[@class='btn-activity btn-message btn-text-def']");

		blockUserListMessenger = By.xpath("//ul[@id='cTalksRecipientCollectionWrap']/li");
		blockItemUser = By.xpath("//ul[@id='cTalksRecipientCollectionWrap']/li");

		// Messenger related
		blockLoginName = By.xpath("//a/div[@class='user-describe']/span[@class='screenname']");
		blockCounter = By.xpath("//a/span[@class='counter']");
		blockOnline = By.xpath("//a/div[@class='user-describe']/span[@class='status online']");
		blockUserID = By.xpath("//a[@data-userid]");

		blockMessageInputField = By.xpath("//div[@id='cTalksInputMessage']");
		blockInputMessage = By.id("cTalksInputMessage");
		blockLoader = By.xpath("//div[@class='messages-wrapper loading']");
		blockRead = By.xpath("//span[@title='Read']");
		blockUnread = By.xpath("//span[@title='Unread']");
		blockMessageText = By.id("cTalksMessageList"); // Text in messenger window
		blockMessageOut = By.xpath(".//div[@class='message message-out']");
		blockMessageIn = By.xpath(".//div[@class='message message-in']");

		///

		btnClose = By.xpath("//a[@data-state='close']");
		btnMaximize = By.xpath("//a[@title='Maximize']");
		btnMinimize = By.xpath("//a[@title='Minimize']");
		btnPopOut = By.xpath("//a[@title='Pop-out']");
		btnPopIn = By.xpath("//a[@title='Pop-in']");
		bntFAQ = By.xpath("//div[@class='b-info-types']");
		btnOptions = By.xpath("//span[contains(.,'Options')]");
		btnDelete = By.xpath("//a[@title='Delete conversations']");
		btnSmiles = By.xpath("//div[@id='cTalksSmiles']");
		btnSubmit = By.xpath("//button[@class='btn-talks btn-send']");
		btnVideo = By.xpath("//span[@class='btn-video']");

		// Element
		elTitleIcon = By.xpath("//h2[@class='title icon-msg']");
		elHistory = By.xpath("//div[@class='messenger-history']");
		elUsersList = By.id("cTalksRecipientCollection");

		txtTitle = By.xpath("//div[@id='cTalksHeader']//*[@class='name']");
		elCounter = By.xpath("//div[@id='cTalksHeader']//*[@class='counter']");
	}
}
